package com.atguigu.springcloud.service;


//库存调用其它微服务

import com.atguigu.springcloud.config.MultipartSupportConfig;
import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "seata-storage-service",configuration = MultipartSupportConfig.class)
public interface StorageService {
    @PostMapping(value="/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
